<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
		<meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
		<title>岗位详情页面</title>
		<!--	<script src="../../script/mui.min.js"></script>-->
		<!--	<script src="../../script/jquery.min.js"></script>-->
		<link rel="stylesheet" type="text/css" href="../../css/api.css"/>
		<!--<link rel="stylesheet" href="../../css/mui.min.css" />-->
		<link rel="stylesheet" href="../../css/base.css"/>
		<style>
			html, body {
				width: 100%;
				height: 100%;
				background: #FFFFFF;
				margin: 0px;
			}
			p {
				display: block;
				-webkit-margin-before: 0em;
				-webkit-margin-after: 0em;
				-webkit-margin-start: 0px;
				-webkit-margin-end: 0px;
			}
			.show_img {
				margin-top: 44px;
				width: 100%;
				height: 190px;
			}
			.show_img img {
				width: 100%;
				height: 100%;
			}
			.intro {
				width: 100%;
				height: auto;
				padding-bottom: 10px;
			}
			.intro_title {
				font-size: 16px;
				color: #333;
				padding: 10px;
			}
			.intro_int {
				font-size: 13px;
				color: #666;
				line-height: 20px;
				padding-left: 10px;
				padding-right: 10px;
			}
			.butom {
				margin-top: 0px;
				width: 100%;
				padding: 10px 0;
				font-size: 18px;
				display: block;
				color: #fff;
				border: 1px solid #f0ad4e;
				background-color: #f0ad4e;
			}
			.but_bottom {
				/*position: absolute;*/
				bottom: 0px;
				width: 100%;
				position: fixed;
				/*height: 40px;*/
			}
			#deta_title {
				color: #FFFFFF;
			}
		</style>
	</head>
	<body>
		<div class="base_style_color" id='BarAppearance' style="height: 22px;width: 100%; position:fixed; left: 0px;top:0px;"></div>
		<div class="base_navigation_bar base_style_color base_navigation_item_bar" style="position: fixed;left: 0px;">
			<a class="base_left_item" href="#" onclick="backup()"> <img class="base_back_icon" src="../../image/icon_jiantou.png" alt=""> </a>
			<span id="deta_title">岗位详情</span>
			<a class="base_right_item base_hide_item"> </a>
		</div>
		<div>
			<div class="but_bottom">
				<button id="sumbit_bt" type="button" class="  butom" onclick="Upload_data()">
					我要报名
				</button>
			</div>
		</div>
	</body>
	<script type="text/javascript" src="../../script/api.js"></script>
	<script src="../../script/jquery.min.js" type="text/javascript"></script>
	<script type="text/javascript" src="../../script/MD5.js"></script>
	<script src="../../script/common.js"></script>
	<script type="text/javascript" src="../../script/requestTool.js"></script>
	<script type="text/javascript">
		var ispay = ''//    : 是否支付
		var learn_plan = '';
		//学习进度
		apiready = function() {
			SendBehaviorTrajectoriesNotifi1(0, '岗位详情', '121',api.pageParam.sourceurl, api.pageParam.sourcetitle, window.location.pathname,  document.title);
			var title = api.pageParam.title;
			$api.setStorage("jobs", title);
			// 岗位名称
			$("#deta_title").html(title);
			var ids = api.pageParam.id;
			api.openFrame({
				name : 'DetailaPager',
				url : 'DetailaPager.html',
				pageParam : {
					id : ids,
				},
				vScrollBarEnabled : false,
				hScrollBarEnabled : false,
				rect : {
					x : 0,
					y : 66,
					w : api.winWidth,
					h : api.winHeight - 66 - 46
				}
			});
			//报名通知
			api.addEventListener({
				name : 'ispay'
			}, function(ret, err) {
				//coding...
				//      	alert(JSON.stringify(ret));
				var data = ret.value;
				if (data != "") {
					ispay = ret.value.ispay;
					learn_plan = ret.learn_plan;
					if (ispay != null) {//报名过不可点击
						$("#sumbit_bt").html('已报名');
						$("#sumbit_bt").attr("disabled", true);
					}
					if (learn_plan != null) {//学习中不可点击
						$("#sumbit_bt").html('学习中');
						$("#sumbit_bt").attr("disabled", true);
					}
				}
			});
		};
		//报名
		function Upload_data() {
			api.openWin({useWKWebView:true,
				name : 'MyAPPly',
				url : 'MyAPPly.html',
				vScrollBarEnabled : false,
				hScrollBarEnabled : false,
				scaleEnabled : true,
			   allowEdit : true,
//				allowEdit：true,
				pageParam : {
				    quarter_name:api.pageParam.title,
					id : api.pageParam.id,
					type : 1,
					sourceurl : window.location.pathname,
					sourcetitle : document.title
				},
			});
				SendBehaviorTrajectoriesNotifi1(1, '岗位详情', '121',api.pageParam.sourceurl, api.pageParam.sourcetitle, window.location.pathname,  document.title);
		}

		function backup() {
			api.closeWin({
			});
		}
	</script>
</html>